#include "User.h"


json User::serialize() const {
    json j;
    j["id"] = user_id;
    j["name"] = user_name;
    j["pwd"] = user_pwd;
    return j;
}

void User::deserialize(const json& j) {
    user_id = j["id"];
    user_name = j["name"];
    user_pwd = j["pwd"];
}

